﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Calculalouca
{
    class SceneManager
    {
        public static Scene scene = null;
        private enum CurrentScene { OPENING, CALCULADORA, CONGRATULATIONS };
        static private CurrentScene currentScene;
        

        static public void Setup(Game game)
        {
            SceneManager.scene = new Opening(game);
            game.Components.Add(SceneManager.scene);
        }

        static public void ChangeScene(Game game)
        {
            game.Components.Clear();

            switch (SceneManager.currentScene)
            {

                case CurrentScene.OPENING:
                    SceneManager.scene = new Calculadora(game);
                    SceneManager.currentScene = CurrentScene.CALCULADORA;
                    break;
                case CurrentScene.CALCULADORA:
                    SceneManager.scene = new Congratulations(game);
                    SceneManager.currentScene = CurrentScene.CONGRATULATIONS;
                    break;
                case CurrentScene.CONGRATULATIONS:
                    game.Exit();
                    break;
            }

            game.Components.Add(SceneManager.scene);
        }
    }
}
